package com.crud.dao;

import com.crud.pojo.User;

import java.util.List;

public interface IUserDao {

    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    /**
     * 查询全部用户
     * @return
     */
    List<User> selectAll();
}

